import request from "@/request";

export function login(data) {
  return request({
    data,
    url: "/api/user/login",
    method: "POST",
  });
}

export function register(data) {
  return request({
    data,
    url: "/api/user/register",
    method: "POST",
  });
}

export function page(data) {
  return request({
    data,
    url: "/api/user/page",
    method: "GET",
    isParams: true,
  });
}

export default {
  login,
  register,
  page,
};
